export function createNewOrder(param) {

	//return uni.$u.http.get('users/auth/info');

	return uni.$u.http.post('order/newOrder',param)

}

export function createOrder(param) {

	//return uni.$u.http.get('users/auth/info');

	return uni.$u.http.post('order/createOrder',param)

}
export function findByOrderMyInfo(id=0) {
	return uni.$u.http.get('order/info?id='+id)

}
export function findByCloudOrderMyInfo(id=0) {
	return uni.$u.http.get('cloud/order/info?id='+id)

}
export function findByOrderInfo() {
	return uni.$u.http.get('order/getInfo')

}
export function findByOrderMyList(index=0) {
	return uni.$u.http.get('order/findByMyList?status='+index)

}

export function findByCloudOrderMyList(index=0) {
	return uni.$u.http.get('cloud/order/findByMyList?status='+index) 

}


export function createCloudOrder(param) {

	//return uni.$u.http.get('users/auth/info');

	return uni.$u.http.post('cloud/order/createOrder',param)

}
//    @PostMapping("/rePayment")

export function orderRePayment(id=0) {

	//return uni.$u.http.get('users/auth/info');

	return uni.$u.http.post('order/rePayment?id='+id,{id:id})

}
//shopPayment
export function ordershopPayment(id=0) {

	//return uni.$u.http.get('users/auth/info');

	return uni.$u.http.post('order/shopPayment?orderId='+id,{orderId:id})

}